<?php
// Checks if user is logged in else redirect back to startpage
if (isset($_SESSION["valid_admin"])) {
    if ($_SESSION["valid_admin"] == 0)
    {
        header("Location: index.php");
    }
}
else
{
    header("Location: index.php");
}
?>

